<?php

namespace App\Http\Controllers\V1\Api;

use App\Http\Controllers\V1\Api\BaseController;
use App\Models\V1\News;
use App\Models\V1\OpinionClass;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class OpinionClassController extends BaseController
{
    /**
     * 意见分类列表
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function index(Request $request){
        $pageSize=$request->input('pageSize',10);
        $query=OpinionClass::query();
        $data=$query->paginate($pageSize);
        $query->where('state', '=', 1);
        return ajax_output(200,"成功",$data);
    }





}
